package com.baoyouqun.service;

import com.alibaba.cola.dto.SingleResponse;
import com.alibaba.fastjson2.JSONObject;
import com.baoyouqun.API.wx.BindWechatDTO;
import com.baoyouqun.API.wx.RegisterWechatDTO;

public interface WechatLoginService {

    /**
     * 微信绑定现有账号
     */
    SingleResponse<String> bindWechat(BindWechatDTO bindWechatDTO);

    /**
     * 新用户微信注册绑定
     */
    SingleResponse<String> registerByWechat(RegisterWechatDTO registerWechatDTO);

    /**
     * 刷新微信session_key
     */
    SingleResponse<JSONObject> refreshWxSession(String refreshToken);

    /**
     * 解除微信绑定
     */
    SingleResponse<Void> unbindWechat();
}
